

<extend name="./Application/Admin/View/layout.html"/>
<block name="content">



            <!-- start: Content -->
            <div id="content" class="span10">


            <ul class="breadcrumb">
                <li>
                    <i class="icon-home"></i>
                    <a href="index.html">Home</a>
                    <i class="icon-angle-right"></i>
                </li>
                <li><a href="#">广告位列表</a></li>
            </ul>

            <div class="row-fluid sortable">

                <div class="box span12">
                    <div class="box-header" data-original-title>
                        <h2><i class="halflings-icon white user"></i><span class="break"></span>广告位列表</h2>
                        <div class="box-icon">
                            <a href="#" class="btn-setting"><i class="halflings-icon white wrench"></i></a>
                            <a href="#" class="btn-minimize"><i class="halflings-icon white chevron-up"></i></a>
                            <a href="#" class="btn-close"><i class="halflings-icon white remove"></i></a>
                        </div>
                    </div>
                    <div class="box-content">

                        <table class="table table-striped table-bordered bootstrap-datatable datatable">
                        <a class="btn btn-success" href="{:U('Admin/banner/add')}">添加广告</a>
                        <span>   </span>
                        <a class="btn btn-success" href="{:U('Admin/banner/add_point')}">添加广告位</a>
                          <thead>
                              <tr>
                                  <th>id</th>
                                  <th>名称</th>
                                  <th>宽度</th>
                                  <th>高度</th>
                                  <th>描述</th>
                                  <th>上线时间</th>
                                  <th>下线时间</th>
                                  <th>状态</th>
                                  <th>操作</th>
                              </tr>
                          </thead>
                          <tbody>
                          <foreach name="list" key="k" item="v" >
                            <tr>
                                <td>{$v.id}</td>
                                <td>{$v.name}</td>
                                <td>{$v.width}px</td>
                                <td>{$v.height}px</td>
                                <td>{$v.desc}</td>
                                <td>{:date('Y-m-d : H:i:s',$v['up_time'])}</td>
                                <td>{:date('Y-m-d : H:i:s',$v['down_time'])}</td>
                                <td >{$v['status']==0?'启用':'禁用'}</td>
                                <td class="center">
                                    <a class="btn btn-success" href="{:U('banner/lists?id='.$v['id'])}">
                                        <i class="halflings-icon white zoom-in"></i>
                                    </a>
                                    <a class="btn btn-info" href="{:U('admin/edit?id='.$v['id'])}">
                                        <i class="halflings-icon white edit"></i>
                                    </a>
                                    <a class="btn btn-danger" href="#">
                                        <i class="halflings-icon white trash"></i>
                                    </a>
                                </td>
                            </tr>
                            </foreach>
                          </tbody>
                      </table>
                    </div>
                </div><!--/span-->

            </div><!--/row-->




    </div><!--/.fluid-container-->
</block>